package com.evil.enterprise.controller;

import com.evil.common.application.enums.CurrencyCodeEnum;
import com.evil.common.core.entity.R;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 公共分类
 */
@Slf4j
@RestController
@RequestMapping("/common")
@AllArgsConstructor
public class CommonController {

    /**
     * 币种列表
     *
     * @return R
     */
    @GetMapping("/currency/code/list")
    public R<?> getCurrencyCodeList() {
        return R.success(CurrencyCodeEnum.codesMap());
    }
}
